#ifndef _CAPP_H_
    #define _CAPP_H_
 
#include <SDL.h>

#include "CSurface.h"
#include "CEvent.h"
 
class CApp  : public CEvent {
    private:
        bool            Running;
		int				x_pos;
 
        SDL_Surface*    Surf_Display;

		SDL_Surface*    Surf_Test;
 
    public:
        CApp();
 
        int OnExecute();

	public:
 
        bool OnInit();
 
        void OnEvent(SDL_Event* Event);

		void OnExit();

		void OnMouseMove(int mX, int mY, int relX, int relY, bool Left,bool Right,bool Middle);

        void OnLoop();
 
        void OnRender();
 
        void OnCleanup();
};
 
#endif